package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 假期业务对象 oa_holiday
 *
 * @author ruoyi
 * @date 2023-07-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaHolidayBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 假期时间
     */
    @NotNull(message = "假期时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date holidayDate;

    /**
     * 假期名称
     */
    @NotBlank(message = "假期名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 节假日类型
     */
    @NotBlank(message = "节假日类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;


}
